﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainAdmin.Master" CodeBehind="AdminWaitListBorrow.aspx.vb" Inherits="QLThuVien.AdminWaitListBorrow" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function showInfoDocGia(s, e) {
        s.GetRowValues(e.visibleIndex, 'taikhoan', function (getTK) {
            pc_infodocgia.SetContentUrl("popup_templates/AdminInfoUserDelay.aspx?taikhoan=" + getTK);
            pc_infodocgia.Show();
        });
    }
    function showAlertMessage(s, e) {
        if (s.cp_showAlertMessage) {
            alert(s.cp_showAlertMessage);
            delete s.cp_showAlertMessage;
        }
    }
</script> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">
            Danh Sách Chờ Mượn
        </h1>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">      
       <dx:ASPxGridView ID="grid_dschomuon" runat="server"  EnableTheming="True" Theme="MetropolisBlue" 
                Width="100%" AutoGenerateColumns="False" KeyFieldName="id_sach" >
                <Columns>
                <dx:GridViewCommandColumn ShowDeleteButton="True"
                        VisibleIndex="0" Width="100px" CellStyle-HorizontalAlign="Center" ButtonType="Image"
                       >
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />
                     
<CellStyle HorizontalAlign="Center"></CellStyle>
                    <CustomButtons>
                    <dx:GridViewCommandColumnCustomButton ID="bt_chuyenmuon"    >
                    <Image IconID="actions_redo_16x16devav" ></Image>
                    
                    
                    </dx:GridViewCommandColumnCustomButton>
                    </CustomButtons>
                    </dx:GridViewCommandColumn>
                    <dx:GridViewDataColumn FieldName="taikhoan" VisibleIndex="1" Caption="Tài Khoản" CellStyle-HorizontalAlign="Center">
                        <EditFormSettings VisibleIndex="0" />
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn FieldName="id_sach" VisibleIndex="2" Caption="Mã Sách" CellStyle-HorizontalAlign="Center">
                        <EditFormSettings VisibleIndex="1" />
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>
                   
                    <dx:GridViewDataColumn FieldName="tensach" VisibleIndex="3" Caption="Tên Sách" CellStyle-HorizontalAlign="Center">
                        <EditFormSettings VisibleIndex="2" />
                       <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataDateColumn FieldName="ngaymuon" VisibleIndex="4" Caption="Ngày Mượn" CellStyle-HorizontalAlign="Center">
                     <EditFormSettings VisibleIndex="3" />
                     <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy" ></PropertiesDateEdit>
                     
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataDateColumn> 
                    <dx:GridViewDataDateColumn FieldName="ngaytra" VisibleIndex="5" Caption="Ngày Hẹn Trả" CellStyle-HorizontalAlign="Center" >
                    <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy" ></PropertiesDateEdit>
                     
                     <EditFormSettings VisibleIndex="3" />
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataDateColumn> 
                    <dx:GridViewDataCheckColumn FieldName="kieumuon" VisibleIndex="6" 
                        Caption="Kiểu Mượn" CellStyle-HorizontalAlign="Center"  >
                        <HeaderStyle Font-Bold="True" BackColor="#428bca" ForeColor="White"  HorizontalAlign="Center"  />
                        <PropertiesCheckEdit DisplayTextChecked="Mượn Về Nhà" DisplayTextUnchecked="Mượn Tại Chỗ"></PropertiesCheckEdit>

<CellStyle HorizontalAlign="Center"></CellStyle>
                    </dx:GridViewDataCheckColumn>

                </Columns>
                <Settings ShowFilterRow="True" ShowGroupPanel="True" ShowStatusBar="Visible" ShowFilterRowMenu="true" ShowGroupButtons="true" ShowFilterRowMenuLikeItem="true" ShowFilterBar="Visible"  ShowFooter="true"      />
                <SettingsEditing EditFormColumnCount="3" />
                <SettingsSearchPanel Visible="True" />   
                <SettingsPager Position="TopAndBottom" PageSizeItemSettings-Items="5,10,15,20" PageSizeItemSettings-Visible="true">
                    <PageSizeItemSettings Items="5, 10, 15, 20" Visible="True">
                    </PageSizeItemSettings>
                </SettingsPager>
                <SettingsBehavior ConfirmDelete="true" />
                <SettingsText ConfirmDelete="Bạn Có Muốn Xóa Không?" />  
                             <SettingsCommandButton>
            <DeleteButton Image-IconID="actions_cancel_16x16office2013" ButtonType="Image">
<Image IconID="actions_cancel_16x16office2013"></Image>
                     </DeleteButton>
        </SettingsCommandButton> 
        
          <ClientSideEvents RowDblClick="showInfoDocGia" EndCallback="showAlertMessage"  />  

       </dx:ASPxGridView> 
                                                               
    </div>
          <dx:ASPxPopupControl ID="pc_infodocgia" runat="server" Modal="true" PopupVerticalAlign="WindowCenter" PopupHorizontalAlign="WindowCenter" ClientInstanceName="pc_infodocgia" CloseAnimationType="Fade" HeaderText="Thông Tin Độc Giả"
        Width="700px" Height="250px"> 
        <ClientSideEvents CloseUp="function(s,e){
            s.RefreshContentUrl();
        }" />         
        </dx:ASPxPopupControl>   
</div>
</asp:Content>
